package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ly.common.core.domain.BaseVo;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 投标结果
 * </p>
 * @author WuZH
 * @since 2024-05-14
 */
@Getter
@Setter
@TableName ("erp_tender_result_info")
@ApiModel (value = "投标结果", description = "投标结果")
public class TenderResultEntity extends BaseVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ("id")
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty ("投标信息Id")
    @TableField ("tender_id")
    private String tenderId;

    @ApiModelProperty ("标书Id")
    @TableField ("bid_id")
    private String bidId;

    @ApiModelProperty ("是否中标，1：是；2：否")
    @TableField ("is_win_bid")
    private Integer isWinBid;

    @ApiModelProperty ("中标单位")
    @TableField ("win_bid_company")
    private String winBidCompany;

    @ApiModelProperty ("中标金额")
    @TableField ("win_bid_money")
    private String winBidMoney;

    @ApiModelProperty ("中标金额大写")
    @TableField ("win_bid_money_ch")
    private String winBidMoneyCh;

    @ApiModelProperty ("投标总结")
    @TableField ("tender_remarks")
    private String tenderRemarks;

    @ApiModelProperty ("创建时间")
    @TableField ("create_time")
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date createTime;

    @ApiModelProperty ("更新时间")
    @TableField ("change_time")
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date changeTime;

    @TableField ("is_used")
    private Integer isUsed;

    @TableField(exist = false)
    @ApiModelProperty("标书管理信息")
    private BidEntity bid;

    @TableField(exist = false)
    @ApiModelProperty("投标决策信息")
    private TenderEntity tender;

    @TableField(exist = false)
    @ApiModelProperty("客户信息")
    private CustomerEntity customer;

}
